<?php
/**
 * Text element
 *
 */
class ArrowFormErrorBound extends ArrowTagContainer{
	
	public function configure(){
		$this->setRequiredParent( "ArrowForm" );
	}
	
	public function init(){
		$form = $this->getParent( "ArrowForm" );
		$form->init();
		$errors = $form->getErrors();
		$alerts = $form->getExternalAlerts();

		if( empty($errors) && empty($alerts) )
			$this->setDisplay(false);
	}
	
	public function generateBlockStart(){ return ""; }
	public function generateBlockEnd(){ return ""; }

}
?>